package com.zeng.sys.authmd.servicemodule.convert;

import com.zeng.nicecore.convert.AbstractConvertor;
import com.zeng.nicecore.util.BeanUtil;
import com.zeng.sys.authmd.apimodule.vo.UserRoleVo;
import com.zeng.sys.authmd.servicemodule.entity.UserRole;

public class UserRoleVoConvert implements AbstractConvertor<UserRole, UserRoleVo> {

    @Override
    public UserRoleVo beanToVo(UserRole userRole) {
        return BeanUtil.beanToVo(userRole, new UserRoleVo());
    }

    @Override
    public UserRole voToBean(UserRoleVo userRoleVo) {
        return BeanUtil.beanToVo(userRoleVo, new UserRole());
    }

}
